﻿<Window x:Class="Mengsk.ProxyDelivery.App.UI.Order.OrderGoodsPriceEditWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="编辑商品价格" Height="300" Width="300" WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize" SizeToContent="WidthAndHeight" Loaded="Window_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="250"/>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="0" Text="订单编号:" Margin="3" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding OrderId}" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="1" Grid.Column="0" Text="商品编号:" Margin="3" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Id}" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="2" Grid.Column="0" Text="当前金额:" Margin="3" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding Price,StringFormat=F2}" Margin="3" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="3" Grid.Column="0" Text="当前差价:" Margin="3" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="3" Grid.Column="1" Text="{Binding AddPrice,StringFormat=F2}"  Margin="3" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="4" Grid.Column="0" Text="增加金额:" Margin="3" VerticalAlignment="Center"/>
        <TextBox Grid.Row="4" Grid.Column="1" Name="tbAddPrice" Margin="3" VerticalAlignment="Center"/>

        <Button Grid.Row="5" Grid.Column="1" Name="btnSet" Margin="3" VerticalAlignment="Center" Click="btnSet_Click" Content="设置" Width="60"/>
    </Grid>
</Window>
